
/**
 * 统一抛错处理
 * @param errorContent 错误内容
 */
const throwError = async (errorContent?: string | any) => {
  if (typeof errorContent === 'string') {
    throw Error(errorContent)
  }

  throw errorContent;
}

export default throwError
